//
//  UIColor+StringToColor.h
//  DadaBI
//
//  Created by admin on 15/8/19.
//  Copyright (c) 2015年 shstzz. All rights reserved.
//

#import <UIKit/UIKit.h>

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

//颜色和透明度设置
#define RGBA(r,g,b,a)    [UIColor colorWithRed:(float)r/255.0f green:(float)g/255.0f blue:(float)b/255.0f alpha:a]



#define MAIN_COLOR @"#02afa2"   //主题绿色
#define BACK_COLOR @"#f3f3f3"   //背景灰白色

#define kColorGreenTheme            [UIColor hexStringToColor:@"#02afa2"]       //主色调颜色

#define kColorOrangeDeny            [UIColor hexStringToColor:@"#ff9800"]       //否定类
#define kColorBlueLink              [UIColor hexStringToColor:@"#03a9f4"]       //文字链接

#define kColorLightGreenSelected    [UIColor hexStringToColor:@"#e6f7f6"]       //列表按下状态
#define kColorGreenHighlight        [UIColor hexStringToColor:@"#58cdc2"]       //背景渐变亮部
#define kColorGreenBackground       [UIColor hexStringToColor:@"#039385"]       //签到标签背景

#define kColorGrayBackground        [UIColor hexStringToColor:@"#f3f3f3"]       //背景色
#define kColorGraySeparater         [UIColor hexStringToColor:@"#e5e5e5"]       //分割线
#define kColorGrayHintText          [UIColor hexStringToColor:@"#bdbdbd"]       //提示文字
#define kColorGrayText              [UIColor hexStringToColor:@"#757575"]       //正文
#define kColorBalckTitle            [UIColor hexStringToColor:@"#333333"]       //标题

#define kColorGrayBarBackground     [UIColor hexStringToColor:@"#f8f8f8"]       //tabBar背景色


@interface UIColor (StringToColor)
/**
 *  字符串颜色转换成UIColor
 *
 *  @param stringToConvert #ffffff类型的颜色
 *
 *  @return UIColor
 */
+ (UIColor *) hexStringToColor: (NSString *) stringToConvert;



@end
